﻿using QMERP.SeedWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 供应商
    /// </summary>
    public partial class Supplier : FullEntity<long>
    {
        public Supplier() 
        {
            Lens_Suppliers = new HashSet<Lens_Supplier>();
        }
        /// <summary>
        /// 供应商代码
        /// </summary>
        public string Code { get; set; } = "";
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 供应商简称
        /// </summary>
        public string ShortName { get; set; } = "";
        /// <summary>
        /// 地区代码
        /// </summary>
        public string AreaCode { get; set; } = "";
        /// <summary>
        /// 交易代码
        /// </summary>
        public string TradeCode { get; set; } = "";
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; } = "";
        /// <summary>
        /// 邮政编码
        /// </summary>
        public string? PostCode { get; set; } 
        /// <summary>
        /// 纳税人
        /// </summary>
        public string? Taxpayer { get; set; }
        /// <summary>
        /// 银行
        /// </summary>
        public string? Bank { get; set; }
        /// <summary>
        /// 银行账号
        /// </summary>
        public string? BankAccount { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        public string? Fax { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string? ContactPerson { get; set; } = "";
        /// <summary>
        /// 负责人类型
        /// </summary>
        public string? ContactType { get; set; } = "";
        /// <summary>
        /// 信用等级
        /// </summary>
        public string? CreditGrade { get; set; } = "";
        /// <summary>
        /// 优先级
        /// </summary>
        public int? Priority { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 镜种绑定的供应商
        /// </summary>
        public virtual ICollection<Lens_Supplier> Lens_Suppliers { get; set; }
    }
}
